@extends('default.mobile.layouts.personalPublic')
@section('title','隐私设置-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/personal/common.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/mobile/jquery/select.css')}}">
@endsection

{{--头部标签--}}
@section('tag','隐私设置')

{{--主体内容--}}
@section('content')
    <div class="fill" id="fill" style="overflow: hidden">
        <div class="form_info" id="form_info">
            <form action="{{url('mobile/personal/privacy')}}" method="post" id="resumeRefreshForm" name="resumeRefreshForm">
                {{csrf_field()}}
                <input type="hidden" name="resume_id" value="{{ $resume->id }}" id="id" />
                <dl class="arrow" id="resume_status_select">
                    <input type="hidden" name="resume_status" value="{{ $resume->bkresume_status }}" id="resume_status" />
                    <dt>保密设置</dt>
                    <dd><span class="select_text">请选择保密设置</span></dd>
                </dl>
                <div class="form_sub"><input type="submit" value="保存"></div>
            </form>
        </div>
    </div>
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/mobile/jquery/jquery.select.js')}}"></script>

    <script>
        $(function(){
            var fill = $("#fill").find('#form_info');

            var option_resume_status = [
                {text:'完全公开',value:1},
                {text:'不公开（主动投递才能查看）',value:2},
                {text:'完全保密（直接关闭简历）',value:3}
            ];
            fill.find("#resume_status_select").select({
                select_title:'保密设置',                //标题值
                hidden: '#resume_status',                   //select隐藏表单值
                opt_data:option_resume_status               //select选项值（数组json对象）
            });
        });
    </script>
@endsection